package movee.zookeeper.leader.selector.cluster;

import java.util.List;

/**
 *
 *
 * @author movee
 */
public interface ClusterEventListenerRegistry<T extends ClusterEventListener> extends Iterable<T> {

    void registerClusterEventListener(final String name, final T listener);

    T removeClusterEventListener(final String name);

    Boolean containClusterEventListener(final String name);

    List<String> getListenerNames();

    T getListener(final String name);

    List<T> getListeners();
}
